<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="/static/console/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/static/console/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/static/console/css/animate.min.css" rel="stylesheet">
    <link href="/static/console/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/static/console/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="/static/console/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="/static/console/colpick/css/colpick.css" rel="stylesheet" type="text/css"/>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>编辑：<b>{$detail['name']}</b></h5>
                        <div class="ibox-tools">
                            <a href="javascript:(0)" onClick="javascript:history.back(-1);" class="btn btn-primary btn-xs">返回 <i class="glyphicon glyphicon-share-alt"></i></a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form action="/console/wechat/edit_post" method="post" enctype="multipart/form-data" class="form-horizontal m-t" id="form1">
                            <input type="hidden" name="id" value="{$detail['id']}">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">小程序名称：</label>
                                <div class="col-sm-4">
                                    <input id="name" name="name" minlength="2" value="{$detail['name']}"  type="text" class="form-control" required="" aria-required="true">
                                </div>
                                *
                            </div>
                             <div class="form-group">
                                <label class="col-sm-2 control-label">排序：</label>
                                <div class="col-sm-4">
                                    <input id="sort" name="sort" minlength="2" value="{$detail['sort']}"  type="text" class="form-control" required="" aria-required="true">
                                </div>
                                * 小的排在前面
                            </div>
                             <div class="form-group">
                                <label class="col-sm-2 control-label">预览：</label>
                                <div class="col-sm-4">
                                    <img  class="feed-photo" src="/uploads/pic/{$detail['pic']}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">小程序码：</label>
                                <div class="col-sm-4">
                                    <input type="file" name="pic" class="form-control">
                                </div>
                            </div>
                             <div class="form-group">
                                <label class="col-sm-2 control-label">状态：</label>
                                <div class="col-sm-4">
                                    <div class="checkbox i-checks">
                                        <label><input type="radio" value="1" name="status" {if condition="$detail['status'] == 1"}checked{/if} > <i></i> 启用</label>
                                        <label><input type="radio" value="2" name="status" {if condition="$detail['status'] == 2"}checked{/if}> <i></i> 禁用</label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset3">
                                    <button class="btn btn-primary"  onclick="subpost();"  type="button">保存</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="/static/console/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/console/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="/static/console/js/plugins/validate/messages_zh.min.js"></script>
    <script src="/static/console/js/demo/form-validate-demo.min.js"></script>
    <script src="/static/console/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="/static/console/js/subpost.js"></script>
    <script type="text/javascript" src="/static/wangEditor/release/wangEditor.min.js"></script>
    <script type="text/javascript">
        var E = window.wangEditor;
        var editor = new E('#editor');
        var $text1 = $('#content');
        editor.customConfig.onchange = function (html) {
            // 监控变化，同步更新到 textarea
            $text1.val(html)
        };
        // 配置服务器端地址
        editor.customConfig.uploadImgServer = '/console/index/wang_upload';
        editor.create()
    </script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_validate.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:16 GMT -->
</html>
